<template>
	
	<view class="content">
		<view class="u-demo-area">
			<u-toast :type="type" ref="uToast"></u-toast>
			<u-notice-bar :autoplay="autoplay" :playState="playState" :speed="speed" @getMore="getMore" 
			:mode="mode" @end="end" @close="close" @click="click" :show="show" :type="type" :list="list"
			:moreIcon="moreIcon" :volumeIcon="volumeIcon" :duration="duration" :isCircular="isCircular"></u-notice-bar>
		</view>
		
		<u-button type="primary" size="medium" @click="startLearnClick">开始学习</u-button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Anki开发',
				how: true,
				autoplay: false,
				type: 'warning',
				list: [
					'锦瑟无端五十弦，一弦一柱思华年',
					'庄生晓梦迷蝴蝶，望帝春心托杜鹃',
					'沧海月明珠有泪，蓝田日暖玉生烟'
				],
				mode: 'horizontal',
				playState: 'play',
				speed: 160,
				duration: 2000,
				moreIcon: true,
				volumeIcon: true,
				isCircular: true,
				current: 0
			}
		},
		onLoad() {

		},
		methods: {
			startLearnClick() {
				uni.navigateTo({
				    url: '/pages/index/question'
				});
			},
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
